{% extends "base.html" %}

{% block body %}
<div class="edit">
    <form action="/Add" method="post">
        {% module xsrf_form_html() %}
        <input type="text" name="title" class="edit_title" placeholder="Title">

        <div class="date_and_tag edit_date_tags">
            <div id="date" onclick="display('tags');">
                {{locale.format_date(datetime.datetime.utcnow(),-480,full_format=True)}}
            </div>
            <div class="tags" id="tags" style="display: none;">
                {% for i in tags %}
                <a href="#" class="tag" data-name="{{i.name}}" onclick="tag_check(this);">#{{i.name}}#</a>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                {% end %}
                <input type="text" name="new_tag" class="form-control" placeholder="Tags">
            </div>
        </div>

        <textarea name="content" rows="18" class="edit_content"></textarea>
        <button type="submit" class="button">发布</button>
    </form>
</div>
{% end %}